import config
from list_view import *


class FileView(ListView):
    RootDir = config.SourceRootDir
    encryptMenuClicked = pyqtSignal()

    def pop_menu(self, pos):
        menu = QMenu()
        menu.addAction("加密").triggered.connect(self.encryptMenuClicked)
        menu.addAction("删除").triggered.connect(self.delete)
        menu.exec_(QCursor.pos())

